Optimal. Leaf size=106 \[ -\frac{2^{-m-\frac{1}{2}} \cos (e+f x) (\sin (e+f x)+1)^{m-1} \left (\frac{\sin (e+f x)+1}{\sin (e+f x)+3}\right )^{\frac{1}{2}-m} (\sin (e+f x)+3)^{-m} \, _2F_1\left (\frac{1}{2},\frac{1}{2}-m;\frac{3}{2};\frac{1-\sin (e+f x)}{\sin (e+f x)+3}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.101139, antiderivative size = 106, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.08, Rules used = {2788, 132} \[ -\frac{2^{-m-\frac{1}{2}} \cos (e+f x) (\sin (e+f x)+1)^{m-1} \left (\frac{\sin (e+f x)+1}{\sin (e+f x)+3}\right )^{\frac{1}{2}-m} (\sin (e+f x)+3)^{-m} \, _2F_1\left (\frac{1}{2},\frac{1}{2}-m;\frac{3}{2};\frac{1-\sin (e+f x)}{\sin (e+f x)+3}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2788
Rule 132
Rubi steps
\begin{align*} \int (1+\sin (e+f x))^m (3+\sin (e+f x))^{-1-m} \, dx &=\frac{\cos (e+f x) \operatorname{Subst}\left (\int \frac{(1+x)^{-\frac{1}{2}+m} (3+x)^{-1-m}}{\sqrt{1-x}} \, dx,x,\sin (e+f x)\right )}{f \sqrt{1-\sin (e+f x)} \sqrt{1+\sin (e+f x)}}\\ &=-\frac{2^{-\frac{1}{2}-m} \cos (e+f x) \, _2F_1\left (\frac{1}{2},\frac{1}{2}-m;\frac{3}{2};\frac{1-\sin (e+f x)}{3+\sin (e+f x)}\right ) (1+\sin (e+f x))^{-1+m} \left (\frac{1+\sin (e+f x)}{3+\sin (e+f x)}\right )^{\frac{1}{2}-m} (3+\sin (e+f x))^{-m}}{f}\\ \end{align*}
Mathematica [A] time = 0.58035, size = 167, normalized size = 1.58 \[ \frac{2^{-2 m-1} \tan \left (\frac{1}{4} (2 e+2 f x-\pi )\right ) (\sin (e+f x)+1)^m \cos ^2\left (\frac{1}{4} (2 e+2 f x-\pi )\right )^{-m} \left (\frac{\cos ^2\left (\frac{1}{4} (2 e+2 f x-\pi )\right )}{\sin (e+f x)+3}\right )^m \left ((\sin (e+f x)+3) \sec ^2\left (\frac{1}{4} (2 e+2 f x-\pi )\right )\right )^m \, _2F_1\left (\frac{1}{2},m+1;\frac{3}{2};-\frac{1}{2} \cos ^2\left (\frac{1}{4} (2 e+2 f x+\pi )\right ) \sec ^2\left (\frac{1}{4} (2 e+2 f x-\pi )\right )\right )}{f} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.247, size = 0, normalized size = 0. \begin{align*} \int \left ( 1+\sin \left ( fx+e \right ) \right ) ^{m} \left ( 3+\sin \left ( fx+e \right ) \right ) ^{-1-m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (\sin \left (f x + e\right ) + 3\right )}^{-m - 1}{\left (\sin \left (f x + e\right ) + 1\right )}^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (\sin \left (f x + e\right ) + 3\right )}^{-m - 1}{\left (\sin \left (f x + e\right ) + 1\right )}^{m}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (\sin \left (f x + e\right ) + 3\right )}^{-m - 1}{\left (\sin \left (f x + e\right ) + 1\right )}^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]